package com.example.mapper;

import com.example.pojo.Role;
import com.example.pojo.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-08-20
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    boolean add(@Param("uid") Integer uid, @Param("rolesId") Integer[] rolesId);

    List<Role> getPageList(@Param("page") Integer page, @Param("pageSize") Integer pageSize);
}
